<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'inputExcel.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
		<jsp:include page="head.jsp"></jsp:include>
		<center>
			<h1>
				<font color="red"> 自动创建实训课程班 </font>
			</h1>
			<br />
			<br />
			<s:form action="/admin/importAllStudent.action" method="post"
				enctype="multipart/form-data">   
    导入有班级学生名单的Excel文件：<s:file name="excelFile"></s:file>
				<br />
				<s:submit value="导入"></s:submit>
			</s:form>

			<!-- 下载文件名作为链接参数fileName值，用OGNL表达式表达 -->
			<a  
				href="<s:url value='/admin/download.action'>                  
                    <s:param name='fileName'  
 value='fileFileName[#fn.getIndex()]'/>     
                 </s:url>">附件：学生名单的excel表样单_下载</a>



			<p>
				点击
				<a href="javascript:history.go(-1);">返回</a>上一页面
			</p>
		</center>

	</body>
</html>
